import { PUBLIC_SERVER_URL } from "$env/static/public";
import { createAuthClient } from "better-auth/svelte";
{{#if (eq payments "polar")}}
import { polarClient } from "@polar-sh/better-auth";
{{/if}}

export const authClient = createAuthClient({
	baseURL: PUBLIC_SERVER_URL,
{{#if (eq payments "polar")}}
	plugins: [polarClient()]
{{/if}}
});
